/*
 * @Author: many
 * @Date: 2020-06-19 00:07:05
 * @LastEditors: di
 * @LastEditTime: 2020-06-23 13:44:48
 * @Description: file content
 */

import Vue from "vue";
import VueRouter from "vue-router";
import Home from "../views/home.vue";

Vue.use(VueRouter);

const routes = [
  {
    path: '/',
    redirect: '/home'
  },
  {
    path: "/home",
    name: "Home",
    component: Home,
    meta: {
      title: '详情'
    }
  },
  {
    path: "/order-omment",
    name: "OrderComment",
    component: ()=> import('../views/comment/order-comment.vue'),
    meta: {
      title: '评价'
    }
  }
];

const router = new VueRouter({
  mode: "hash",
  base: process.env.BASE_URL,
  routes
});

export default router;
